<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center"><div class="table-first-id">ID</div></th>
            <th class="text-center" width="50%">问答内容</th>
            <th class="text-center" width="10%">类型</th>
            <th class="text-center" width="15%">创建时间</th>
            <th class="text-center" width="15%">收益金额</th>
        </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody>
            <tr class="jqgfirstrow" role="row">
                <th class="text-center"><div class="table-first-id">&nbsp;</div></th>
                <th class="text-center" width="50%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
            </tr>
            <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                <td colspan="10" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                    </div>
                </td>
            </tr>
            <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="list : ${dataMap['list']}" th:attr="data-id=${list['id']}">
                <td class="text-center" th:text="${list['id']}"></td>
                <td class="text-center" th:text="${list['qaQuestion']['context']}"></td>
                <td class="text-center">
                    <th:block th:if="${recordType}==1">问答分成</th:block>
                    <th:block th:if="${recordType}==2">旁听分成</th:block>
                </td>
                <td class="text-center" th:text="${list['createTime']}"></td>
                <td class="text-center">
                    <i class="fa fa-rmb"></i>
                    <th:block th:if="${recordType}==1" th:text="${list['price']}"></th:block>
                    <th:block th:if="${recordType}==2" th:text="${list['amount']}"></th:block>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>
</html>